package com.dameng.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SystemRole extends Model<SystemRole> {
    @TableId(type = IdType.ASSIGN_UUID)
    private String roleId;
    private String name;
    private String note;
    @TableField(exist = false)
    private boolean checked;

    @Override
    protected Serializable pkVal() {
        return this.roleId;
    }
}
